package info

//省
type Province struct {
	Id int `json:"id"`
	Sort int `json:"sort"`
	Name string `json:"name"`
	Remark string `json:"remark"`
}

//市
type City struct {
	Id int `json:"id"`
	ProvinceId int `json:"provinceId"`
	Sort int `json:"sort"`
	Name string `json:"name"`
	Hot bool `json:"hot"`
}

//区
type District struct {
	Id int `json:"id"`
	CityId int `json:"cityId"`
	Sort int `json:"sort"`
	Name string `json:"name"`
}

func GetProvinces() []Province  {
	var provinces []Province

	provinces = append(provinces,Province{Id:1,Sort:1,Name:"广东省"})
	provinces = append(provinces,Province{Id:2,Sort:2,Name:"湖北省"})
	provinces = append(provinces,Province{Id:3,Sort:3,Name:"湖南省"})
	provinces = append(provinces,Province{Id:4,Sort:4,Name:"广西省"})
	provinces = append(provinces,Province{Id:5,Sort:5,Name:"福建省"})

	return provinces
}

func GetCities() []City {
	var cities []City

	//广东省
	cities = append(cities,City{Id:1,ProvinceId:1,Sort:1,Name:"广州市",Hot:true})
	cities = append(cities,City{Id:2,ProvinceId:1,Sort:2,Name:"深圳市",Hot:true})
	cities = append(cities,City{Id:3,ProvinceId:1,Sort:3,Name:"湛江市",Hot:false})
	cities = append(cities,City{Id:4,ProvinceId:1,Sort:4,Name:"茂名市",Hot:false})
	cities = append(cities,City{Id:5,ProvinceId:1,Sort:5,Name:"阳江市",Hot:false})
	cities = append(cities,City{Id:6,ProvinceId:1,Sort:6,Name:"江门市",Hot:false})

	cities = append(cities,City{Id:7,ProvinceId:1,Sort:7,Name:"佛山市",Hot:false})
	cities = append(cities,City{Id:8,ProvinceId:1,Sort:8,Name:"清远市",Hot:false})
	cities = append(cities,City{Id:9,ProvinceId:1,Sort:9,Name:"河源市",Hot:false})
	cities = append(cities,City{Id:10,ProvinceId:1,Sort:10,Name:"梅州市",Hot:false})
	cities = append(cities,City{Id:11,ProvinceId:1,Sort:11,Name:"潮州市",Hot:false})
	cities = append(cities,City{Id:12,ProvinceId:1,Sort:12,Name:"汕头市",Hot:false})


	return cities
}

func GetDistricts() []District  {
	var districts []District

	//广州市
	districts = append(districts,District{Id:1,CityId:1,Sort:1,Name:"天河区"})
	districts = append(districts,District{Id:2,CityId:1,Sort:2,Name:"海珠区"})
	districts = append(districts,District{Id:3,CityId:1,Sort:3,Name:"白云区"})
	districts = append(districts,District{Id:4,CityId:1,Sort:4,Name:"萝岗区"})
	districts = append(districts,District{Id:5,CityId:1,Sort:5,Name:"黄埔区"})
	districts = append(districts,District{Id:6,CityId:1,Sort:6,Name:"南沙区"})
	districts = append(districts,District{Id:7,CityId:1,Sort:7,Name:"荔湾区"})
	districts = append(districts,District{Id:8,CityId:1,Sort:8,Name:"越秀区"})

	//深圳市
	districts = append(districts,District{Id:9,CityId:2,Sort:9,Name:"罗湖区"})
	districts = append(districts,District{Id:10,CityId:2,Sort:10,Name:"南山区"})
	districts = append(districts,District{Id:11,CityId:2,Sort:11,Name:"宝安区"})
	districts = append(districts,District{Id:12,CityId:2,Sort:12,Name:"福田区"})
	districts = append(districts,District{Id:13,CityId:2,Sort:13,Name:"龙岗区"})
	districts = append(districts,District{Id:14,CityId:2,Sort:15,Name:"光明新区"})

	//湛江市
	districts = append(districts,District{Id:15,CityId:3,Sort:15,Name:"麻章区"})
	districts = append(districts,District{Id:16,CityId:3,Sort:16,Name:"霞山区"})
	districts = append(districts,District{Id:17,CityId:3,Sort:17,Name:"赤坎区"})
	districts = append(districts,District{Id:18,CityId:3,Sort:18,Name:"开发区"})

	return districts
}